<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	template="/layout/dialogLayout.xhtml">

	<ui:param name="param_panelTitle" value="添加产品信息" />
	<ui:param name="param_panelWidth" value="400px" />

	<ui:define name="content">
		<h:form>
			<rg:titlePanel headerTitle="添加子项" readonly="false">
				<rg:fieldSet column="single" labelWidth="80px">
					<rg:inputText id="subItem" label="子项"
						value="#{addQuestionExtendAction.questionExtend.item}"
						required="true" />
					<rg:inputText id="subName" label="子项名称"
						value="#{addQuestionExtendAction.questionExtend.name}"
						required="true" />
					<rg:selectOne id="name" label="子项类型"
						itemsProvider="#{questionFieldProvider}"
						value="#{addQuestionExtendAction.questionFieldType}"
						required="true" />
				</rg:fieldSet>
				<div style="width: 100%; text-align: center;">
					<h:commandButton styleClass="button" value="添加"
						oncomplete="UI.instance.reRender('reRenderQuestionExtendTable');UI.instance.closeDialog()；"
						actionListener="#{addQuestionExtendAction.addQuestionExtend()}" />

					<h:commandButton styleClass="button" value="取消"
						onclick="UI.instance.closeDialog()" />

				</div>
			</rg:titlePanel>
		</h:form>
	</ui:define>
</ui:composition>
